< previous page page_435 next page >

Page 435
APPENDIX A
HINTS
The best hint I can offer for any puzzle is to first apply the ''Ten Commandments for Safe API Programming" (from this book's Introduction) to each puzzle. There are few problems that do not relate in one way or another to these commandments.
Puzzle 1
See my book Visual Basic Programmer's Guide to the Win32 API, Chapter 5.
See Tutorial 1, "Finding Functions," in Part III of this book.
See API Commandment VIII.
Puzzle 2
UnderWindows, many standard values have descriptive constant names. Thus message &H10 has the constant nameWM_CLOSE, as shown in this example.
Puzzle 3
There are some obvious problems with this program. There are others thathow shall I put it?are not quite as obvious.
See API Commandment I.
See API Commandment IX
Consider the ScaleMode property.
Puzzle 4
Don't give up after you solve the first problem.

 
< previous page page_435 next page >